// 联合类型
const array1: (number | string)[] = [123, '1', '2', 3]
console.log(array1)

//类型别名
type newName = (number | string)[]
const array2: newName = [546, '156', 123]
console.log(array2)
